package com.ysstech.reportworld.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 标准层表校验语句信息
 * </p>
 *
 * @author lishuangliang
 * @since 2022-05-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("report_world_table_check")
public class TableCheck extends Model<TableCheck> {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private String id;

    /**
     * 表id
     */
    @TableField("TABLE_ID")
    private String tableId;

    /**
     * 校验sql
     */
    @TableField("DATASQL")
    private String datasql;


    /**
     * 错误类型
     */
    @TableField("ERROR_TYPE")
    private Integer errorType;

    /**
     * 错误提示信息
     */
    @TableField("ERROR_MSG")
    private String errorMsg;

    /**
     * 顺序
     */
    @TableField("SEQUENCE")
    private Integer sequence;
    /**
     * 校验说明
     */
    @TableField("DESCRIPTION")
    private String description;
    /**
     * 版本号
     */
    @TableField("VERSION")
    private String version;

    @TableField("STATUS")
    private Integer status;

    @TableField("FILENAME")
    private String fileName;

    @TableField("ADD_TIME")
    private LocalDateTime addTime;

    @TableField("ADD_USER")
    private String addUser;

    @TableField("EDIT_TIME")
    private LocalDateTime editTime;

    @TableField("EDIT_USER")
    private String editUser;

    @TableField("DELETE_REASON")
    private String deleteReason;

    @Override
    protected Serializable pkVal() {
        return null;
    }
}
